package upmc.fr.android.rss;

import java.util.LinkedList;
import java.util.List;

public class RSSFlow 
{
	private String url;
	private List<RSSArticle> articles;
	private String title;
	private String description;

	public RSSFlow()
	{
		articles = new LinkedList<RSSArticle>();
	}
	
	public String getUrl() 
	{
		return url;
	}
	
	public String getTitle() 
	{
		return title;
	}
	
	public String getDescription() 
	{
		return description;
	}
	
	public void setDescription(String description) 
	{		
		this.description = description;
	}
	
	public void setTitle(String title) 
	{
		this.title = title;
	}
	
	public void setUrl(String url) 
	{
		this.url = url;
	}
	
	public void addArticle(RSSArticle article)
	{
		this.articles.add(article);
	}
	
	public void removeArticle(RSSArticle article)
	{
		this.articles.remove(article);
	}
	
	public RSSArticle getArticle(int index)
	{
		return articles.get(index);
	}
	
	public List<RSSArticle> getArticles()
	{
		return articles;
	}
}
